<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	function check() {
		var name=$("input[name=name]").val();
		var age=$("input[name=age]").val();
		if (name=="" || age=="") {
			alert("姓名和年龄不能为空!");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
<form action="UpdateServlet?id=${mem.id }" method="post" onclick="return check()">
	<table>
		<tr>
			<th colspan="2">会员信息</th>
		</tr>
		<tr>
			<td>姓名</td>
			<td><input type="text" name="name" value="${mem.mname }"></td>
		</tr>
		<tr>
			<td>性别</td>
			<td><input type="radio" name="sex" value="男" checked="checked">男
			<input type="radio" name="sex" value="女"<c:if test="${mem.mgender eq '女' }">checked="checked"</c:if> >女</td>
		</tr>
		<tr>
			<td>年龄</td>
			<td><input type="text" name="age" value="${mem.mage }"></td>
		</tr>
		<tr>
			<td>家庭住址</td>
			<td><input type="text" name="address"  value="${mem.maddress }"></td>
		</tr>
		<tr>
			<td>Email</td>
			<td><input type="text" name="email"  value="${mem.memail }"></td>
		</tr>
		<tr>
		<td><input type="submit" value="修改"></td>
		<td><input type="reset" value="重置"></td>
		</tr>
	</table>
</form>
</body>
</html>